package com.liangtian.mdm.material.service;

import com.github.pagehelper.PageInfo;
import com.liangtian.mdm.base.response.BaseResponse;
import com.liangtian.mdm.material.model.WlbmJldw;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
import java.util.Map;

@SuppressWarnings("rawtypes")
public interface WlbmJldwService {

    public PageInfo getWlbmJldwListByCond(Map<String, Object> map);

    public int insertWlbmJldw(WlbmJldw wlbmJldw);

    public void updateWlbmJldw(WlbmJldw wlbmJldw);

    public int checkWlbmJldwExist(WlbmJldw wlbmJldw);

    public WlbmJldw getWlbmJldwByIdOrName(WlbmJldw wlbmJldw);

    public int deleteWlbmJldwByIds(Map<String, Object> map);

    public void updateWlbmJldwStatus(WlbmJldw wlbmJldw);

    public List<WlbmJldw> queryWlbmJldws();

    /**
     * 校验用户输入的数据，并插入数据库
     */
    public BaseResponse checkImportListThenInsert(List<Object[]> valueList, String tableName) throws IOException;


    public List<String> genInsertJldwSql(String tableName, List<Object[]> subList, String[] headArray);

    //计量单位导出
    public void exportWlbmJldw(List<WlbmJldw> list, HttpServletResponse response);

    public PageInfo getWlbmJldwListByCond2(Map<String, Object> map);

}
